package com.volunteer.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.volunteer.entity.Showcase;
import com.volunteer.mapper.ShowcaseMapper;
import com.volunteer.service.ShowcaseService;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 风采服务实现类
 */
@Service
public class ShowcaseServiceImpl extends ServiceImpl<ShowcaseMapper, Showcase> implements ShowcaseService {

    @Override
    public List<Showcase> getShowcaseList() {
        return this.baseMapper.selectList(Wrappers.lambdaQuery(Showcase.class).eq(Showcase::getIsDisplay, 1));
    }
}
